#pragma once
#include "Core.h"

template<class RESULT,class POSTER>
struct Complete:public CObject
{
	void (*OnComplete)(RESULT r,POSTER p,void* pAttached);
	void* pAttached;

	void operator()(RESULT r,POSTER p)
	{
		OnComplete(r,p,pAttached);
	}
};
